﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLNS.Class;
using QLNS.NghiepVu;
using QLNS.HeThong;
using QLNS.DanhMuc;

namespace QLNS
{
    public partial class Main : Form
    {
        DB cn = new DB();
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            if (cn.KetNoi())
            {
                //frmDangNhap frmDangNhap = new frmDangNhap();
                //frmDangNhap.ShowDialog();
                //frmCauHinh frmCauHinh = new frmCauHinh();
                //frmCauHinh.ShowDialog(); 
                //frmDonVi frmDonDatHang = new frmDonVi();
                //frmDonDatHang.ShowDialog();
            }
        }

        private void menuDonVi_Click(object sender, EventArgs e)
        {
            frmBacLuong frmdonvi = new frmBacLuong();
            frmdonvi.ShowDialog();
        }

        private void menuChuVu_Click(object sender, EventArgs e)
        {
            frmChucVu frmchucvu = new frmChucVu();
            frmchucvu.ShowDialog();
        }

        private void menuCoQuan_Click(object sender, EventArgs e)
        {
            //frmCoQuan frmcoquan = new frmCoQuan();
            //frmcoquan.ShowDialog();
        }

        private void menuCVDoan_Click(object sender, EventArgs e)
        {
            //frmChucVuDoan frmcvdoan = new frmChucVuDoan();
            //frmcvdoan.ShowDialog();
        }

        private void menuCVDang_Click(object sender, EventArgs e)
        {
            //frmChucVuDang frmcvdang = new frmChucVuDang();
            //frmcvdang.ShowDialog();
        }

        private void trìnhĐộNgoạiNgữToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTrinhDoTinHoc frmtrinhdotinhoc = new frmTrinhDoTinHoc();
            frmtrinhdotinhoc.ShowDialog();
        }

        private void menuNgoaiNgu_Click(object sender, EventArgs e)
        {
            frmNgoaiNgu frmngoaingu = new frmNgoaiNgu();
            frmngoaingu.ShowDialog();
        }

        private void manuLoaiHD_Click(object sender, EventArgs e)
        {
            frmLoaiHD frmloaihd = new frmLoaiHD();
            frmloaihd.ShowDialog();
        }

        private void menuTonGiao_Click(object sender, EventArgs e)
        {
            frmTonGiao frmtongiao = new frmTonGiao();
            frmtongiao.ShowDialog();
        }

        private void menuQueQuan_Click(object sender, EventArgs e)
        {
            //frmQueQuan frmquequan = new frmQueQuan();
            //frmquequan.ShowDialog();
        }

        private void menuKhenThuongKyLuat_Click(object sender, EventArgs e)
        {
            //frmKhenThuongKyLuat frmKhenPhat = new frmKhenThuongKyLuat();
            //frmKhenPhat.ShowDialog();
        }

        private void menuXa_Click(object sender, EventArgs e)
        {
            //frmXa frmxa = new frmXa();
            //frmxa.ShowDialog();
        }

        private void menuDanToc_Click(object sender, EventArgs e)
        {
            frmDanToc frmdantoc = new frmDanToc();
            frmdantoc.ShowDialog();
        }

        private void menuTrinhDo_Click(object sender, EventArgs e)
        {
            frmTrinhDo frmtrinhdo = new frmTrinhDo();
            frmtrinhdo.ShowDialog();

        }

        private void menuChuyenMon_Click(object sender, EventArgs e)
        {
            frmChuyenMon frmchuyenmon = new frmChuyenMon();
            frmchuyenmon.ShowDialog();
        }

        private void hồSơNhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmHoSoNhanVien frmHoSoNhanVien=new frmHoSoNhanVien();
            frmHoSoNhanVien.ShowDialog();
        }

        private void khenThưởngKỷLuậtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //frmCTKhenThuongKyLuat frmCTKhenThuongKyLuat = new frmCTKhenThuongKyLuat();
            //frmCTKhenThuongKyLuat.ShowDialog();
            frmQuanLyQDKhenThuongKyLuat frm = new frmQuanLyQDKhenThuongKyLuat();
            frm.ShowDialog();
        }

        private void bậcLươngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBacLuong frmBacLuong = new frmBacLuong();
            frmBacLuong.ShowDialog();
        }

        private void danhHiệuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDanhHieu frmDanhHieu = new frmDanhHieu();
            frmDanhHieu.ShowDialog();
        }

        private void ngạchCôngChứcToolStripMenuItem_Click(object sender, EventArgs e)
        {
                frmNgachCongChuc frmNgachCongChuc = new frmNgachCongChuc();
            frmNgachCongChuc.ShowDialog();
        }

        private void nghỉViệcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNghiViec frmNghiViec = new frmNghiViec();
            frmNghiViec.ShowDialog();
        }

        private void tổMônToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmToMon frmToMon = new frmToMon();
            frmToMon.ShowDialog();
        }

        private void chứcVụĐoànToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmChucVuDoan frmChucVuDoan= new frmChucVuDoan();
            frmChucVuDoan.ShowDialog();
        }

        private void chứcVụĐảngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmChucVuDang frmChucVuDang = new frmChucVuDang();
            frmChucVuDang.ShowDialog();
        }

        private void hợpĐồngLaoĐộngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQuanLyHopDongLaoDong frmQuanLyHopDongLaoDong = new frmQuanLyHopDongLaoDong();
            frmQuanLyHopDongLaoDong.ShowDialog();

        }

        private void phụCấpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPhuCap frm = new frmPhuCap();
            frm.ShowDialog();
        }

        private void nghỉViệcToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmGiaiQuyetNgiViec  frm = new frmGiaiQuyetNgiViec();
            frm.ShowDialog();
        }

        private void quáTrìnhĐàoTạoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQuaTrinhDaoTao frm = new frmQuaTrinhDaoTao();
            frm.ShowDialog();

        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
